package com.rao.crm.service;

import com.rao.crm.domain.Customer;
import com.rao.crm.domain.PageBean;
import org.hibernate.criterion.DetachedCriteria;

import java.util.List;

/**
 * @author Srao
 * @version 1.0
 * @className CustomerService
 * @date 2019/9/19 15:17
 * @package com.rao.crm.service
 * @description
 */
public interface CustomerService {
    void save(Customer customer);

    PageBean<Customer> findAll(DetachedCriteria detachedCriteria, Integer currPage, Integer pageSize);

    Customer findById(Long cust_id);

    void delete(Customer customer);

    void update(Customer customer);

    List<Customer> findAll();
}
